package com.personal.ifanya.application.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.personal.ifanya.application.dto.VoteDTO;
import com.personal.ifanya.domain.VoteBiz;

@Service
public class VoteService {

	
	@Autowired
	private VoteBiz voteBiz;
	
	
	public List<VoteDTO> getAll()
	{
		return voteBiz.getAll();
	}
	
	
	public boolean addVote(int whichvote, int value)
	{
		return voteBiz.addVote(whichvote, value);
	}
}
